﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Itfort.UserCenter
{
	/// <summary>
	/// 
	/// </summary>
	public static class Utility
	{
		public static Boolean ValidateParameter(ref String param, Int32 minSize, Int32 maxSize)
		{
			if (param == null) return false;
			param = param.Trim();
			return param.Length >= minSize && param.Length <= maxSize;
		}

		public static Boolean ValidateUserName(ref String username)
		{
			if (ValidateParameter(ref username, 6, 30))
			{
				return true;
			}
			else
			{
				return false;
			}
		}

		public static Boolean ValidatePassword(ref String password)
		{
			return false;
		}

		public static Boolean ValidateEmail(ref String email)
		{
			return false;
		}

		public static Boolean ValidateMobile(ref String mobile)
		{
			return false;
		}
	}
}
